

@RestController
@RequestMapping("/rmsBusinessClosingConfig")
public class RmsBusinessClosingConfigController {

    @Resource
    private RmsBusinessClosingConfigService rmsBusinessClosingConfigService;


    /**
     * 获取 RmsBusinessClosingConfig 分页列表
     */
    @GetMapping("/pagination")
    public Ret getRmsBusinessClosingConfigPagination( PaginationVo paginationVo, RmsBusinessClosingConfigQuery rmsBusinessClosingConfigQuery ) throws Exception {
        IPage page = rmsBusinessClosingConfigService.getRmsBusinessClosingConfigPagination(paginationVo, rmsBusinessClosingConfigQuery );
        return Ret.toPage(page);
    }


    /**
     * 获取 RmsBusinessClosingConfig 所有数据
     */
    @GetMapping("/all")
    public Ret getRmsBusinessClosingConfigAllList( RmsBusinessClosingConfigQuery rmsBusinessClosingConfigQuery ) throws Exception {
        List<RmsBusinessClosingConfigEntity> list = rmsBusinessClosingConfigService.getRmsBusinessClosingConfigAllList( rmsBusinessClosingConfigQuery );
        return Ret.ok(list);
    }



    /**
     * 获取 RmsBusinessClosingConfig 详情
    */
   @GetMapping("/{id}")
   public Ret getRmsBusinessClosingConfigDetail(@PathVariable Long id) throws Exception {

       RmsBusinessClosingConfigEntity rmsBusinessClosingConfig = rmsBusinessClosingConfigService.getRmsBusinessClosingConfigDetail(id);
       return Ret.ok(rmsBusinessClosingConfig);
   }


    /**
     * 新增 RmsBusinessClosingConfig
     * */
    @PostMapping("")
    public Ret addRmsBusinessClosingConfig(@RequestBody RmsBusinessClosingConfigVo rmsBusinessClosingConfigVo) throws Exception {

        rmsBusinessClosingConfigService.addRmsBusinessClosingConfig(rmsBusinessClosingConfigVo);
        return Ret.ok();
    }


    /**
     * 更新 RmsBusinessClosingConfig
     * */
    @PutMapping("")
    public Ret updateRmsBusinessClosingConfig(@RequestBody RmsBusinessClosingConfigVo rmsBusinessClosingConfigVo) throws Exception {

        rmsBusinessClosingConfigService.updateRmsBusinessClosingConfig(rmsBusinessClosingConfigVo);
        return Ret.ok();
    }


    /**
     * 删除 RmsBusinessClosingConfig
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemoveRmsBusinessClosingConfig( @RequestBody List<Long> ids ) throws Exception {

        rmsBusinessClosingConfigService.batchRemoveRmsBusinessClosingConfig(ids);
        return Ret.ok();
    }
}

  